package it.orma.iridehr.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "OPPORTUNITA_CANDIDATO")
public class OpportunitaCandidato  implements Serializable{
	
	@Id
	@OneToOne
	@JoinColumn(name = "ID_OPPORTUNITA")
	private Opportunita opportunita;
	
	@Id
	@OneToOne
	@JoinColumn(name = "ID_CANDIDATO")
	private SchedaCandidato schedaCandidato;

	public Opportunita getOpportunita() {
		return opportunita;
	}

	public void setOpportunita(Opportunita opportunita) {
		this.opportunita = opportunita;
	}

	public SchedaCandidato getSchedaCandidato() {
		return schedaCandidato;
	}

	public void setSchedaCandidato(SchedaCandidato schedaCandidato) {
		this.schedaCandidato = schedaCandidato;
	}

}
